package io.renren.modules.pms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.pms.entity.ProductEntity;
import io.renren.modules.pms.entity.dto.ProductConditionDTO;

import java.util.List;
import java.util.Map;

/**
 * 商品信息
 *
 * @author LuoShun
 * @email lori6166@163.com
 * @date 2021-11-03 12:13:00
 */
public interface ProductService extends IService<ProductEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean updateDeleteStatus(Long[] ids, Integer deleteStatus);

    Page list(ProductConditionDTO condition);

    boolean updatePublishStatus(Long[] ids, Integer publishStatus);

    boolean updateRecommendStatus(Long[] ids, Integer recommendStatus);

    boolean updateNewStatus(Long[] ids, Integer newStatus);
}

